package com.qyer.lxp.model.product.normal;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * 获取产品code以及更新时间接口输出参数类
 * Created by jiangping on 16/5/13.
 */

@XmlRootElement(name = "product-code-info")
@XmlAccessorType(XmlAccessType.FIELD)
public class ProductCodeInfo implements Serializable{
    private static final long serialVersionUID = 2299530736223326143L;

    /**
     * 产品code
     */
    @XmlElement(name = "product-code")
    private String productCode;

    /**
     * 产品名称
     */
    @XmlElement(name = "product-name")
    private String productName;

    /**
     * 最后更新时间
     */
    @XmlElement(name = "last-update-time")
    private String lastUpdateTime;

    /**
     * 最后操作行为(RELEASE上架/OFF_SHELF下架/UPDATE更新)
     */
    @XmlElement(name = "last-update-action")
    private String lastUpdateAction;

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(String lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getLastUpdateAction() {
        return lastUpdateAction;
    }

    public void setLastUpdateAction(String lastUpdateAction) {
        this.lastUpdateAction = lastUpdateAction;
    }

    @Override
    public String toString() {
        return "ProductCodeInfo{" +
                "productCode='" + productCode + '\'' +
                ", productName='" + productName + '\'' +
                ", lastUpdateTime='" + lastUpdateTime + '\'' +
                ", lastUpdateAction='" + lastUpdateAction + '\'' +
                '}';
    }
}
